package com.example.demojdbc01.Server;
import com.example.demojdbc01.Entity.User;
import com.example.demojdbc01.Mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserService{
    @Autowired
    //厨师需要做什么样的菜
    private UserMapper userMapper;
    public List<User> findAll(){
        return userMapper.findAll();
    }

    public List<User> findAll1(){
        return userMapper.findAll();
    }


    public User findOne(String userid){return userMapper.findOne(userid);}

    public User findOne1(String userid){return userMapper.findOne1(userid);}

    public Integer delete(String userid) {return userMapper.delete(userid);}

    public int save(User user) {return userMapper.save(user);}
}